package com.smarth.zhizulian.bean.message;

import android.text.TextUtils;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by 18865 on 2018/3/5.
 */

public class MessageAppNoticePage implements MultiItemEntity {
    /**
     * noticeContent : 新手红包
     * noticeImage : http://oqb17npni.bkt.clouddn.com//支付宝红包.jpg
     * noticeLink : www.baidu.com
     * noticeTitle : 新手红包
     * publishTime : 2018年02月26日 11:23:51
     */


    public static final int TYPE_IMAGE = 0;
    public static final int TYPE_NOIMAGE = 1;


    private String noticeContent;
    private String noticeImage;
    private String noticeLink;
    private String noticeTitle;
    private String publishTime;

    @Override
    public int getItemType() {
        return TextUtils.isEmpty(noticeImage) ? TYPE_NOIMAGE : TYPE_IMAGE;
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    public String getNoticeImage() {
        return noticeImage;
    }

    public void setNoticeImage(String noticeImage) {
        this.noticeImage = noticeImage;
    }

    public String getNoticeLink() {
        return noticeLink;
    }

    public void setNoticeLink(String noticeLink) {
        this.noticeLink = noticeLink;
    }

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }
}
